package taskthree;

/**
 * @author wuwenfa
 */
public class Main {

//    写两个线程，两个线程交替打印1-100的数组

    public static int num = 1;

    public static void main(String[] args) {
        Object lock = new Object();

        ThreadOne one = new ThreadOne(lock);
        ThreadOne two = new ThreadOne(lock);

        Thread oneThread = new Thread(one, "线程一");
        Thread twoThread = new Thread(two, "线程二");

        oneThread.start();
        twoThread.start();

    }
}
